package cn.ac.iie.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author Fighter Created on 2018/10/8.
 */
@Aspect
@Component
public class HttpAspect {
    @Before("execution(public * cn.ac.iie.controller.GirlController.*(..))")
    public void log(){
        System.out.println(1111);

    }

    @After("execution(public * cn.ac.iie.controller.GirlController.*(..))")
    public void doAfter(){
        System.out.println(2222);

    }
}
